﻿using Nop.Services.Events;

namespace Nop.Tests.Nop.Web.Tests.Events;

public class DateTimeConsumer : IConsumer<DateTime>
{
    public Task HandleEventAsync(DateTime eventMessage)
    {
        DateTime = eventMessage;

        return Task.CompletedTask;
    }

    // For testing
    public static DateTime DateTime { get; set; }
}